package com.duan.laugh.upms.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.duan.laugh.upms.api.pojo.entity.Role;

import java.util.List;

/**
 * 角色service接口
 *
 * @author duanjw
 */
public interface RoleService extends IService<Role> {

    /**
     * 根据通行证id查询角色
     *
     * @param passId
     * @return
     */
    List<Role> selectRoleByPassId(Long passId);

    /**
     * 查询当前用户的所有租户
     *
     * @param userId
     * @return
     */
    List<Long> selectTenantByUserIdAndClientId(Long userId, String clientId);
}
